import { ControlWidget } from '@delon/form';
import { Component, ViewChild } from '@angular/core';
import { LbAAC001Component } from '@shared/components/lbAAC001/lbAAC001';

@Component({
  // tslint:disable-next-line:component-selector
  selector: 'sf-AAC001',
  templateUrl: './aac001.widget.html',
})
export class LbAAC001WidgetComponent extends ControlWidget {
  /* 用于注册小部件 KEY 值 */
  static readonly KEY = 'lbGrsy';

  @ViewChild('grsy', { static: false }) grsy: LbAAC001Component


  reset(value: any) {

    this.grsy.reset(value);
    super.reset(value);
  }

  setValue(value: any) {
    this.grsy.setvalue(value);
    super.setValue(value);
  }

  selecChange(value: string) {
    console.log('change:'+value);
    super.setValue(value);
  }

}